#include <allegro5\allegro_primitives.h>

#include "sw_game_state_menu.h"
#include "sw_game_state.h"

#include "sw_game_state_master.h"

sw_game_state_master::sw_game_state_master() {
	game_state_sub = new sw_game_state_menu();
}

sw_game_state_master::~sw_game_state_master() {
}

void sw_game_state_master::draw_on_screen() {
	game_state_sub->draw_on_screen();
	al_flip_display();
	al_clear_to_color(al_map_rgb(0, 0, 0));
}

void sw_game_state_master::compute_timestep() {
	game_state_sub->compute_timestep();
}

void sw_game_state_master::set_game_state_sub(sw_game_state* gs) {
	game_state_sub = gs;
}